<?php
namespace app\serverfund\validate;
use \app\manage\validate\BaseValidate;
/**
 * @author:      李颖
 * @DateTime:    2017-12-21 14:22:16
 * @Description: 杉奇无卡支付 支付宝支付
 */
class SqBankCard extends BaseValidate
{

	protected $rule = [
        'id' => ['integer', 'gt'=>0],
        'user_id' => ['integer', 'gt'=>0],
        'goods_name' => ['min'=>2],
        'merch_order_no' => ['integer', 'gt'=>0],
        'phone_no' => ['regex'=>'^1\d{10}'],
        'customer_name' => ['min'=>2],
        'cerd_id' => ['regex'=>'^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{4}$'],
        'card_no' => ['regex'=>'^(\d{16}|\d{19})$'],
        'cvn2' => ['integer', 'elt'=>'999', 'egt'=>'100'],
        'valid_date' => ['length'=>4],
    ];
    protected $message = [];
    protected $scene = [

    ];




}